<?php
$data->defaultImage = $this->imagesPath . '/product-default.png';
$data->creator->defaultImage = array(
    Option::GENDER_MALE => $this->imagesPath . '/male.gif',
    Option::GENDER_FEMALE => $this->imagesPath . '/female.gif',
);
?>
<div class="item">

    <?php $this->widget('EditorPanelWidget', array('model' => $data, 'htmlOptions' => array('class' => 'editor-panel editor-panel-mini'))); ?>

    <div class="part1">
        <a href="<?php echo $data->url; ?>">
            <img src="<?php echo $data->smallThumbnail; ?>" width="240" class="img-rounded img-responsive" />
        </a>
    </div>

    <div class="part2">
        <p>
            Type: <?php echo $data->type; ?><br/>
            Title: <a href="<?php echo $data->url; ?>" class="truncated"><?php echo $data->title; ?></a><br />
            Description: <?php echo $data->description; ?>
        </p><br />

        <p>
            <img src="<?php echo $data->accountSquareLogo; ?>" width="50" height="50" align="left" />
            Company:<br/>
            <?php echo $data->accountName; ?>
        </p>

        <br /><br />

        <p>
            <img src="<?php echo $data->creatorSquareAvatar; ?>" width="75" height="75" align="left" />
            Author:<br/>
            <?php echo $data->creatorName; ?>
        </p>
        
        <br />
        <div class="buttons clear">
            <?php $this->widget('ext.widgets.EShortlist.ShortListButtonWidget', array('model' => $data, 'count' => $data->totalShortlist)); ?> |
            <?php $this->widget('ext.widgets.ELike.LikeButtonWidget', array('model' => $data, 'count' => $data->totalLike)); ?>
        </div>
        
        <br /><br /><br />
        viewed: <?php echo $data->totalView; ?> |  comments: <?php echo $data->totalComment; ?><br />
        created: <?php echo $data->createdTimeAgo; ?>
        
        Tags: <?php echo $data->tagsLinks; ?><br />
        <?php //$this->widget('ext.widgets.EAbuse.AbuseButtonWidget', array('model' => $data)); ?>
    </div>
</div>